package com.zzh.custom.refresh;

import android.view.View;

import androidx.recyclerview.widget.RecyclerView;


public class PullToRefreshConfig {

    // 上部加载的view
    private Head mHead = new DefaultHead();
    // 下部加载的view
    private Foot mFoot = new DefaultFoot();
    // 内容区view
    private Content<? extends View> mContent = new DefaultNotScrollContent<View>();

    public PullToRefreshConfig copy() {
        PullToRefreshConfig pullToRefreshConfig = new PullToRefreshConfig();

        pullToRefreshConfig.mContent = mContent;
        pullToRefreshConfig.mHead = mHead;
        pullToRefreshConfig.mFoot = mFoot;

        return pullToRefreshConfig;
    }

    public Content<? extends View> getContent() {
        return mContent;
    }

    public Foot getFoot() {
        return mFoot;
    }

    public Head getHead() {
        return mHead;
    }

}
